-
Notifications
You must be signed in to change notification settings - Fork 122
feat: streaming from downstream agents #825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Code Coverage Summary
Diff against main
Results for commit: f4c5c23 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
@@ -151,12 +151,15 @@ def from_agent( | |||
parameters = {"type": "object", "properties": properties, "required": required} | |||
|
|||
def _on_tool_call(**kwargs: dict) -> "AgentResultStreaming": | |||
_stream_flag = kwargs.pop("_stream_downstream_events", True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be stored in AgentRunContext i think
pass | ||
async for downstream_item in tool_output: | ||
if stream_downstream_events: | ||
yield DownstreamAgentResult(agent_id=self.id, item=downstream_item) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for agent_id to be useful agents should be registered somewhere (AgentRunContext?)
No description provided.